.class public Ldgb/m3;
.super Ldgb/j3;
.source "SourceFile"


# instance fields
.field private d:[C

.field private final e:Ldgb/o3;

.field private f:Ljava/lang/String;


# direct methods
.method public constructor <init>(Ljava/lang/String;Ldgb/o3;[C)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ldgb/j3;-><init>()V

    .line 2
    iput-object p1, p0, Ldgb/m3;->f:Ljava/lang/String;

    .line 3
    iput-object p3, p0, Ldgb/m3;->d:[C

    .line 4
    iput-object p2, p0, Ldgb/m3;->e:Ldgb/o3;

    return-void
.end method

.method private a([B)Ljavax/crypto/SecretKey;
    .locals 2

    .line 16
    new-instance v0, Ljavax/crypto/spec/SecretKeySpec;

    const-string v1, "AES"

    invoke-direct {v0, p1, v1}, Ljavax/crypto/spec/SecretKeySpec;-><init>([BLjava/lang/String;)V

    return-object v0
.end method

.method private static a([C[B)Ljavax/crypto/SecretKey;
    .locals 3

    .line 11
    :try_start_0
    new-instance v0, Ljavax/crypto/spec/PBEKeySpec;

    const/16 v1, 0x25

    const/16 v2, 0x80

    invoke-direct {v0, p0, p1, v1, v2}, Ljavax/crypto/spec/PBEKeySpec;-><init>([C[BII)V

    const-string p0, "PBEWITHSHAAND256BITAES-CBC-BC"

    .line 12
    invoke-static {p0}, Ljavax/crypto/SecretKeyFactory;->getInstance(Ljava/lang/String;)Ljavax/crypto/SecretKeyFactory;

    move-result-object p0

    .line 13
    invoke-virtual {p0, v0}, Ljavax/crypto/SecretKeyFactory;->generateSecret(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey;

    move-result-object p0

    .line 14
    new-instance p1, Ljavax/crypto/spec/SecretKeySpec;

    invoke-interface {p0}, Ljavax/crypto/SecretKey;->getEncoded()[B

    move-result-object p0

    const-string v0, "AES"

    invoke-direct {p1, p0, v0}, Ljavax/crypto/spec/SecretKeySpec;-><init>([BLjava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 15
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    const/4 p1, 0x0

    :goto_0
    return-object p1
.end method

.method private c()Ljavax/crypto/SecretKey;
    .locals 2

    :try_start_0
    const-string v0, "AES"

    .line 1
    invoke-static {v0}, Ljavax/crypto/KeyGenerator;->getInstance(Ljava/lang/String;)Ljavax/crypto/KeyGenerator;

    move-result-object v0

    const/16 v1, 0x80

    .line 2
    invoke-virtual {v0, v1}, Ljavax/crypto/KeyGenerator;->init(I)V

    .line 3
    invoke-virtual {v0}, Ljavax/crypto/KeyGenerator;->generateKey()Ljavax/crypto/SecretKey;

    move-result-object v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    const/4 v0, 0x0

    :goto_0
    return-object v0
.end method


# virtual methods
.method public a()Z
    .locals 8

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Ldgb/m3;->f:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "tb295d117135a9763da282e7dae73a5ca7d3e5b11"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ldgb/k3;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 2
    iget-object v1, p0, Ldgb/m3;->e:Ldgb/o3;

    invoke-virtual {v1, v0}, Ldgb/o3;->a(Ljava/lang/String;)[B

    move-result-object v1

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-nez v1, :cond_0

    const/4 v4, 0x1

    goto :goto_0

    :cond_0
    const/4 v4, 0x0

    :goto_0
    if-eqz v4, :cond_1

    const/16 v1, 0x20

    .line 3
    invoke-static {v1}, Ldgb/k3;->a(I)[B

    move-result-object v1

    .line 4
    iget-object v4, p0, Ldgb/m3;->e:Ldgb/o3;

    invoke-virtual {v4, v0, v1}, Ldgb/o3;->a(Ljava/lang/String;[B)J

    move-result-wide v4

    const-wide/16 v6, 0x0

    cmp-long v0, v4, v6

    if-gtz v0, :cond_1

    return v3

    .line 5
    :cond_1
    iget-object v0, p0, Ldgb/m3;->d:[C

    invoke-static {v0, v1}, Ldgb/m3;->a([C[B)Ljavax/crypto/SecretKey;

    move-result-object v0

    if-nez v0, :cond_2

    return v3

    :cond_2
    const-string v1, "AES/CBC/PKCS5Padding"

    .line 6
    invoke-static {v1}, Ldgb/j3;->a(Ljava/lang/String;)Ljavax/crypto/Cipher;

    move-result-object v4

    .line 7
    invoke-static {v1}, Ldgb/j3;->a(Ljava/lang/String;)Ljavax/crypto/Cipher;

    move-result-object v1

    if-eqz v4, :cond_4

    if-nez v1, :cond_3

    goto :goto_1

    .line 8
    :cond_3
    invoke-virtual {p0, v0, v4, v1}, Ldgb/j3;->a(Ljavax/crypto/SecretKey;Ljavax/crypto/Cipher;Ljavax/crypto/Cipher;)V

    .line 9
    iget-object v0, p0, Ldgb/m3;->d:[C

    invoke-static {v0}, Ldgb/l3;->a([C)V

    const/4 v0, 0x0

    .line 10
    iput-object v0, p0, Ldgb/m3;->d:[C

    return v2

    :cond_4
    :goto_1
    return v3
.end method

.method public b(Ljava/lang/String;)Ldgb/n3;
    .locals 7

    .line 1
    invoke-static {}, Ldgb/y3;->a()V

    .line 2
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "ta727348c8aa7823aa5f18dc02a066498bfd8b132"

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Ldgb/k3;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 3
    iget-object v0, p0, Ldgb/m3;->e:Ldgb/o3;

    invoke-virtual {v0, p1}, Ldgb/o3;->a(Ljava/lang/String;)[B

    move-result-object v0

    const/16 v1, 0x10

    const/4 v2, 0x0

    if-nez v0, :cond_2

    .line 4
    invoke-direct {p0}, Ldgb/m3;->c()Ljavax/crypto/SecretKey;

    move-result-object v0

    if-nez v0, :cond_0

    return-object v2

    .line 5
    :cond_0
    invoke-interface {v0}, Ljavax/crypto/SecretKey;->getEncoded()[B

    move-result-object v3

    invoke-static {p1, v1}, Ldgb/k3;->a(Ljava/lang/String;I)[B

    move-result-object v1

    invoke-virtual {p0, v3, v1}, Ldgb/j3;->a([B[B)[B

    move-result-object v1

    if-nez v1, :cond_1

    return-object v2

    .line 6
    :cond_1
    iget-object v3, p0, Ldgb/m3;->e:Ldgb/o3;

    invoke-virtual {v3, p1, v1}, Ldgb/o3;->a(Ljava/lang/String;[B)J

    move-result-wide v3

    const-wide/16 v5, 0x0

    cmp-long p1, v3, v5

    if-gtz p1, :cond_4

    return-object v2

    .line 7
    :cond_2
    invoke-static {p1, v1}, Ldgb/k3;->a(Ljava/lang/String;I)[B

    move-result-object p1

    invoke-virtual {p0, v0, p1}, Ldgb/j3;->b([B[B)[B

    move-result-object p1

    if-nez p1, :cond_3

    return-object v2

    .line 8
    :cond_3
    invoke-direct {p0, p1}, Ldgb/m3;->a([B)Ljavax/crypto/SecretKey;

    move-result-object v0

    if-nez v0, :cond_4

    return-object v2

    .line 9
    :cond_4
    new-instance p1, Ldgb/n3;

    invoke-direct {p1, v0}, Ldgb/n3;-><init>(Ljavax/crypto/SecretKey;)V

    .line 10
    invoke-virtual {p1}, Ldgb/n3;->a()Z

    move-result v0

    if-nez v0, :cond_5

    return-object v2

    :cond_5
    return-object p1
.end method

.method public b()Z
    .locals 7

    .line 11
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Ldgb/m3;->f:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "t26a26ebfab9b4e5f9f39784402706fd6efdf7081"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ldgb/k3;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 12
    iget-object v1, p0, Ldgb/m3;->e:Ldgb/o3;

    invoke-virtual {v1, v0}, Ldgb/o3;->a(Ljava/lang/String;)[B

    move-result-object v1

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-nez v1, :cond_0

    const/4 v4, 0x1

    goto :goto_0

    :cond_0
    const/4 v4, 0x0

    :goto_0
    const/16 v5, 0x10

    if-eqz v4, :cond_2

    .line 13
    invoke-static {v3}, Ldgb/q3;->a(I)[B

    move-result-object v1

    invoke-static {v0, v5}, Ldgb/k3;->a(Ljava/lang/String;I)[B

    move-result-object v4

    invoke-virtual {p0, v1, v4}, Ldgb/j3;->a([B[B)[B

    move-result-object v1

    .line 14
    iget-object v4, p0, Ldgb/m3;->e:Ldgb/o3;

    invoke-virtual {v4, v0, v1}, Ldgb/o3;->a(Ljava/lang/String;[B)J

    move-result-wide v0

    const-wide/16 v4, 0x0

    cmp-long v6, v0, v4

    if-lez v6, :cond_1

    const/4 v2, 0x1

    :cond_1
    return v2

    .line 15
    :cond_2
    invoke-static {v0, v5}, Ldgb/k3;->a(Ljava/lang/String;I)[B

    move-result-object v0

    invoke-virtual {p0, v1, v0}, Ldgb/j3;->b([B[B)[B

    move-result-object v0

    if-nez v0, :cond_3

    return v2

    .line 16
    :cond_3
    invoke-static {v0}, Ldgb/q3;->a([B)I

    move-result v0

    if-ne v0, v3, :cond_4

    const/4 v2, 0x1

    :cond_4
    return v2
.end method
